<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">

<h:body>
	<ui:composition template="/templates/template.xhtml">
		<ui:define name="cuerpo">
			<table align="center">
				<tr>
					<td><rich:panel title="Inicio Sesión" style="width:300px;">
							<f:facet name="header">
								<h:outputText value="Inicio Sesión" />
							</f:facet>
							<table align="center">
								<tr>
									<td><h:form>
											<h:panelGrid columns="2" style="text-align:center;">
												<h:outputLabel value="Usuario:" />
												<h:inputText value="#{loginMBean.usuario}" />

												<h:outputLabel value="Password:" />
												<h:inputSecret value="#{loginMBean.password}" />

												<f:facet name="footer">
													<h:panelGroup style="display:block; text-align:center;">
														<a4j:commandButton value="Ingresar" action="#{loginMBean.ingresar()}" />
													</h:panelGroup>
												</f:facet>
											</h:panelGrid>
										</h:form></td>
								</tr>
							</table>
						</rich:panel></td>
				</tr>
			</table>
		</ui:define>
	</ui:composition>
</h:body>
</html>
